package com.wxj.bank.api.service.impl;

import com.wxj.bank.api.service.ICategoryBusinessService;
import com.wxj.bank.storage.model.Category;
import com.wxj.bank.storage.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shengtao
 * @Description:
 * @date 2019/02/20 17:09
 */
@Service
public class CategoryBusinessServiceImpl implements ICategoryBusinessService{

    @Autowired
    private ICategoryService categoryService;

    @Override
    public Category add(Category category) {
        return categoryService.save(category);
    }
}
